import pyautogui as pa
import time

# 获取屏幕分辨率
x, y = pa.size()
print(x, y)

# 获取鼠标位置
time.sleep(3)
a, b = pa.position()
print(a, b)
